<?php
if(!$profile->permission('_user_can_view_menu_manager'))
	header("Location: index.php");



$submenu .= el::elDiv('action-wrapper', 
	elJquery::elJqueryButton('Gestione Istanze','gest_istance', TRUE, 'index.php?do=istance')
	.elJquery::elJqueryButton('Gestione Boss','gest_boss', TRUE, 'index.php?do=boss')
	.elJquery::elJqueryButton('Gestione Loot','gest_loot', TRUE, 'index.php?do=loot')
	.elJquery::elJqueryButton('Setup Raid','gest_raid', TRUE, 'index.php?do=raid'),
	array('align'=>'left')
);

$elform .= el::elFieldset('Informazioni dell\'istanza', 
	el::elText('Nome completo dell\'istanza', 'istancename', '', array("size"=>'50'))
	.el::elC()
	.el::elText('Nome abbreviato dell\'istanza', 'istanceshortname','')
	.el::elC()
	.el::elSelect('Stato dell\'istanza','istancestatus',array("Obsoleta"=>"obsoleta","Completata"=>"completata","In Progress"=>"in progress","In Farming"=>"in farming","Non Completata"=>"non completata"))
	.el::elC()
	.el::elTextArea("Descrizione Istanza","istancedesc",null,array("rows"=>"5","cols"=>"40"))
);

$elform .= el::elFieldset('Immagini dell\'istanza', 
	el::elText('Icona dell\'istanza', 'istanceicon',null,array("size"=>'35'))
	.el::elS()
	.el::elText('Immagine dell\'istanza', 'istanceimage',null,array("size"=>'35'))
);


$elButton .= el::elButtonReset("clear_istance", "Pulisci Campi").el::elS().el::elButton("new_istance", "Nuova Istanza").el::elS().el::elButton("save_istance", "Salva Modifiche");;
$elform .= el::elHidden("istanceid");

$form_new_istance = new elStyleForm(' Crea una nuova Istanza', 'censistance', $elform, $elButton);

$content .= $form_new_istance->elStyleForm;

$content .= el::elC(1).el::elDiv('div_tbl_istancelist','');


$jsmodule= "<script language=\"javascript\" type=\"text/javascript\" src=\"main/js/mod/jsIstance.js\" charset=\"iso-8859-1\"></script>\n";







include("theme/default/index.php");
?>